{% extends base_template %}

{% block body %}
{% if form.errors %}
<p class="error">Your form submission contains errors. Please correct the highlighted fields.</p>
{% endif %}
<h1>Personality Type Assessment</h1>
<form action="" method="POST" class="assessment">
  {% csrf_token %}
  {% for field in form %}
  <div class="field{% if field.errors %} field-error{% endif %}">
    {{ field.label_tag }}
    {{ field }}
  </div>
  {% endfor %}
  <input type="submit" name="submit" id="id_submit" value="Submit" />
</form>
{% endblock %}
